home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / AEcurveIntersectTemplate.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.2 KB  |  96 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. // Copyright (C) 1997-1998 Alias|Wavefront,
  18. // a division of Silicon Graphics Limited.
  19. //
  20. // The information in this file is provided for the exclusive use of the
  21. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  22. // and incorporate this code into other products for purposes authorized
  23. // by the Alias|Wavefront license agreement, without fee.
  24. //
  25. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  26. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  27. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  28. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  29. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  30. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  31. // PERFORMANCE OF THIS SOFTWARE.
  32. //
  33. //
  34. //    Alias|Wavefront Script File
  35. //
  36. //    Creation Date:    July 9, 1998
  37. //    Author:            laf
  38. //
  39. //    Procedure Name:
  40. //    AEcurveIntersectTemplate
  41. //
  42. //    Description Name;
  43. //    Creates the attribute editor controls for the filletCurve node
  44. //
  45. //    Input Value:
  46. //    nodeName
  47. //
  48. //    Output Value:
  49. //    None
  50. //
  51.  
  52. global proc AEcurveIntersectTemplate( string $nodeName )
  53. {
  54.     
  55.     editorTemplate -beginScrollLayout;
  56.     
  57.     editorTemplate -beginLayout "Curve Intersect History" -collapse false;
  58.  
  59.         editorTemplate -callCustom "AEinputNew \"Input Curve 1\""
  60.                     "AEinputReplace \"Input Curve 1\""
  61.                     "inputCurve1";
  62.         editorTemplate -callCustom "AEinputNew \"Input Curve 2\""
  63.                     "AEinputReplace \"Input Curve 2\""
  64.                     "inputCurve2";
  65.         editorTemplate -addControl "tolerance";
  66.         editorTemplate -addControl "useDirection" "useDirectionControls";
  67.         editorTemplate -addControl "direction";
  68.  
  69.     editorTemplate -endLayout;
  70.  
  71.     // include/call base class/node attributes
  72.     AEabstractBaseCreateTemplate $nodeName;
  73.  
  74.     editorTemplate -addExtraControls;
  75.  
  76.     editorTemplate -endScrollLayout;
  77.     
  78.     editorTemplate -suppress "inputCurve1";
  79.     editorTemplate -suppress "inputCurve2";
  80.  
  81. }
  82.  
  83. global proc useDirectionControls( string $nodeName )
  84. {
  85.     string    $useDirAttrName = $nodeName + ".useDirection";
  86.     int        $value = `getAttr $useDirAttrName`;
  87.  
  88.     if ($value == 0) {
  89.         // Use direction is off
  90.         editorTemplate -dimControl $nodeName "direction" true;
  91.     } else {
  92.         // Use direction is on
  93.         editorTemplate -dimControl $nodeName "direction" false;
  94.     }
  95. }
  96.